package com.gcb.thread.pro2cus;

public class ProducterCustomer {

	public static void main(String[] args) {
		ProductBuffer pb = new ProductBuffer();
		Producter pro = new Producter(pb);
		Customer cus = new Customer(pb);
		Thread pt = new Thread(pro);
		Thread ct = new Thread(cus);
		pt.setPriority(Thread.MAX_PRIORITY);
		pt.start();
		ct.start();
	}
}
